package com.joinway.framework.core.utils;

import com.joinway.framework.bean.BaseBean;

@Deprecated
public class EnvConfig extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * true to supress security validations if request from the same ip of server, false else
	 */
	boolean passLocalRequestHeaderCheck = Boolean.valueOf(System.getProperty("com.joinway.config.validate.requestHeader.pass", "true"));
	
	String xForwardedForKey = System.getProperty("com.joinway.config.xForwardedForKey", "X-Forwarded-For");
	
	boolean xForwardedForEnabled = Boolean.valueOf(System.getProperty("com.join.config.xForwardedForEnabled", "true"));
	
	String xRealIPKey = System.getProperty("com.joinway.config.xRealIPKey", "X-real-ip");;
	
	boolean xRealIPEnabled = Boolean.valueOf(System.getProperty("com.joinway.config.xRealIPEnabled", "true"));

	public boolean isPassLocalRequestHeaderCheck() {
		return passLocalRequestHeaderCheck;
	}

	public void setPassLocalRequestHeaderCheck(boolean passLocalRequestHeaderCheck) {
		this.passLocalRequestHeaderCheck = passLocalRequestHeaderCheck;
	}

	public String getxForwardedForKey() {
		return xForwardedForKey;
	}

	public void setxForwardedForKey(String xForwardedForKey) {
		this.xForwardedForKey = xForwardedForKey;
	}

	public boolean isxForwardedForEnabled() {
		return xForwardedForEnabled;
	}

	public void setxForwardedForEnabled(boolean xForwardedForEnabled) {
		this.xForwardedForEnabled = xForwardedForEnabled;
	}

	public String getxRealIPKey() {
		return xRealIPKey;
	}

	public void setxRealIPKey(String xRealIPKey) {
		this.xRealIPKey = xRealIPKey;
	}

	public boolean isxRealIPEnabled() {
		return xRealIPEnabled;
	}

	public void setxRealIPEnabled(boolean xRealIPEnabled) {
		this.xRealIPEnabled = xRealIPEnabled;
	}


}
